package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜品管理 服务类
 * </p>
 *
 * @author 
 * @since 2024-05-22
 */
public interface IDishService extends IService<Dish> {

    R<Page> pageQuery(Integer page, Integer pageSize, String name);

    R<String> saveDishAndDishFlavor(DishDto dishDto);

    R<DishDto> queryDishAndDishFlavorById(Long id);

    R<List<DishDto>> queryByCategoryIdAndStatus(Long categoryId, Integer status);

    R<String> delete(List<Long> ids);
}
